﻿<Window x:Class="MultiViewer.Display.UnhandlerExceptionWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Unexpected MultiViewer Error" Height="340" Width="540" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" TextWrapping="Wrap" TextAlignment="Justify" Margin="5,5,5,5">
        Something went wrong inside MultiViewer.
        Application needs to be closed. We are sorry for inconvenience. You can copy 
        exception details from the box below and send them with any additional information
        to <Hyperlink NavigateUri="mailto:s_berezin@cs.msu.su" Click="OnEmailClick">s_berezin@cs.msu.su</Hyperlink>. 
        Thank you!</TextBlock>
        <TextBox Name="details" Grid.Row="1" Margin="5,5,5,5" IsReadOnly="True" 
                 VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"></TextBox>
        <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Right">
            <Button Margin="5,5,5,5" Click="OnCopyDetailsClick">Copy details...</Button>
            <Button Margin="5,5,5,5" Click="OnCloseClick">Close</Button>
        </StackPanel>
    </Grid>
</Window>
